﻿// (c) Norbert Huffschmid
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.

using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;

namespace SpinDotters.Widgets
{
    /// <summary>
    /// View model part of Counter control
    /// </summary>
    public partial class Counter
    {
        public int Value5
        {
            get { return GetDigitValue(5); }
            set { SetDigitValue(5, value); }
        }

        public int Value4
        {
            get { return GetDigitValue(4); }
            set { SetDigitValue(4, value); }
        }

        public int Value3
        {
            get { return GetDigitValue(3); }
            set { SetDigitValue(3, value); }
        }

        public int Value2
        {
            get { return GetDigitValue(2); }
            set { SetDigitValue(2, value); }
        }

        public int Value1
        {
            get { return GetDigitValue(1); }
            set { SetDigitValue(1, value); }
        }

        public int Value0
        {
            get { return GetDigitValue(0); }
            set { SetDigitValue(0, value); }
        }

        public Visibility Visibility5 { get { return GetVisibility(5); } }
        public Visibility Visibility4 { get { return GetVisibility(4); } }
        public Visibility Visibility3 { get { return GetVisibility(3); } }
        public Visibility Visibility2 { get { return GetVisibility(2); } }
        public Visibility Visibility1 { get { return GetVisibility(1); } }
        public Visibility Visibility0 { get { return GetVisibility(0); } }
    }
}
